package io.lkt.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lkt.common.utils.PageUtils;
import io.lkt.common.utils.Query;

import io.lkt.modules.sys.dao.BConnectionApplyInfoDao;
import io.lkt.modules.sys.entity.BConnectionApplyInfoEntity;
import io.lkt.modules.sys.service.BConnectionApplyInfoService;


@Service("bConnectionApplyInfoService")
public class BConnectionApplyInfoServiceImpl extends ServiceImpl<BConnectionApplyInfoDao, BConnectionApplyInfoEntity> implements BConnectionApplyInfoService {
    @Autowired
    private BConnectionApplyInfoDao bConnectionApplyInfoDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BConnectionApplyInfoEntity> page = this.page(
                new Query<BConnectionApplyInfoEntity>().getPage(params),
                new QueryWrapper<BConnectionApplyInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<BConnectionApplyInfoEntity> getListByUserId(Map<String, Object> params) {
        return bConnectionApplyInfoDao.getListByUserId(params);
    }

    @Override
    public Integer getListByUserIdTotal(Map<String, Object> params) {
        return bConnectionApplyInfoDao.getListByUserIdTotal(params);
    }

}
